package com.typy.www.tpay.util;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

import com.typy.www.tpay.ui.fragment.PayFragment;
import com.typy.www.tpay.ui.view.PayPwdView;
import com.typy.www.tpay.util.inter.InputCallBack;

/**
 * Created by 13799 on 2018/7/1.
 */

public class PwdDailogUtil {
    private static PayFragment fragment;

    public static void show(FragmentActivity fragmentActivity, InputCallBack inputCallBack) {
        Bundle bundle = new Bundle();
        fragment = new PayFragment();
        fragment.setArguments(bundle);
        fragment.setPaySuccessCallBack(inputCallBack);
        fragment.show(fragmentActivity.getSupportFragmentManager(), "");
    }

    public static void hide() {
        if (fragment != null) {
            fragment.dismiss();
        }
    }

}
